class ErrorCode(object):
    '''
        ErrorCode for api request status, if api call successfully, 
        then the error code for these situations are all return 
        0x10001, else check the followings
    '''
    # create user successfully
    CREATE_USRE_SUCCESS = 0x10001

    # user login/logout successfully
    USER_LOGIN_SUCCESS = 0x10001
    USER_LOGOUT_SUCCESS = 0x10001

    # user info updated successfully
    USER_UPDATE_SUCCESS = 0x10001

    #################################################################
    #  Error code fuck off, $_$!
    #################################################################

    # error
    # TODO : this is used when username is the same or the email
    # address exists, we'd better to distinguish these two situations
    USER_EXIST = 0x10002

    # request data is not sufficient, or the data format is not right
    BAD_REQUEST_DATA = 0x10003

    # user is already been disabled
    USER_DISABLED = 0x10004

    # user password or username error
    USER_PW_OR_NAME_ERROR = 0x10005

    LOGIN_REQUIRED = 0x10006
    
    USER_UPDATE_ERROR = 0x10007
